<?php
  require '../include/library.inc.php';
  require '../include/admin_login.inc.php';
    
  $file = $_GET['file'];

  if($file) {
	
	if (unlink("../uploads/files/".$file)) {
	
		$_SESSION['message'] = $file.' is deleted!';
		
	}
  }
  
  redirect("files.php");  
?>